<?php

// Ensure some PEAR2 compatible autoloader is loaded
require_once __DIR__ . '/_setup.inc';

use pear2::template_engine::Template;

function lower(Template $t, $args) {
    return strtolower($args);
}

$template = new Template(__DIR__ . '/plugins.tpl.php');
$template->message = "Hello World!";
$template->registerCallback('lower');
echo $template;

